<table width="100%" cellspacing="0" cellpadding="0">
<tbody><tr>
<th>Product Name</th>
<th width="80">Qty</th>
<th width="50">Unit</th>
<th width="50">Total</th>
<th width="50"></th>
</tr>

<?php foreach ($cart_info as $item):?>


<tr>
<td style="padding-bottom:5px; padding-top:5px;"><table cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="60" style="border:none; padding:0px; margin:0px;"><a target="_blank" href="index<?php echo $item['url'];?>"><img title="<?php echo $item['product_name'];?>" src="<?php echo $item['img']?>" width=30 hight=30></a></td>
<td style=" border:none; padding:0px; margin:0px; padding-left:5px;"><a target="_blank" href="index<?php echo $item['url'];?>">index<?php echo $item['product_name'];?></a></td>
</tr>
</tbody></table></td>
<td align="center"><input type="text" onkeyup="this.value=this.value.replace(/[^\d]|^0+/g,'')" value="<?php echo $item['qty'];?>" style="width:40px;" class="intxt" name="qty[0]" id="qty0"></td>
<td align="center"><?php echo $item['product_price'];?></td>
<td align="center"><?php echo $item['product_price']*$item['qty'];?></td>
<td align="center" class="operate"><table cellspacing="0" cellpadding="0">
<tbody><tr>
<td style="border:none; padding:0px; margin:0px;"><input type="image" name="submit" src="http://www.qualityreplica.org.uk/templates/images/update.gif"></td>
<td style="border:none; padding:0px; margin:0px;"><a href="javascript:location.href='shippingcart.html?step=drop_goods&amp;id=0';"><img src="http://www.qualityreplica.org.uk/templates/images/del.gif"></a></td>
</tr>
</tbody></table></td>
</tr>

<?php endforeach;?>

</tbody></table>
 
<form id="bill_form" method="post" onsubmit="return checkForm()" action="/do_pay">
<div class="payment clearfix">
<div class="payment1">
<div class="box">
<h6>Shipping Information</h6>
<div class="address_from">
<div class="item clearfix">
<label>First Name</label>
<input id="shipfirstname" name="shipfirstname" value="<?php echo $shipaddr['firstname'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Last Name</label>
<input id="shiplastname" name=" shiplastname" value="<?php echo $shipaddr['lastname'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Address</label>
<input id="address" name="address" value="<?php echo $shipaddr['address'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>City</label>
<input id="city" name="city" value="<?php echo $shipaddr['city'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>State/Province</label>
<input id="state" name="state" value="<?php echo $shipaddr['state'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Postal code</label>
<input id="postcode" name="postcode" value="<?php echo $shipaddr['postcode'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Country</label>
<select id="country" name="country" class="allSelect">
<option value="">please select</option>
<?php foreach ($countrys as $item):?>
<option value="<?php echo $item['iso_code'];?>" <?php if($shipaddr['country']==$item['iso_code']):?>selected="selected"<?php endif;?>><?php echo $item['name'];?></option>
<?php endforeach;?>
</select>
</div>
<div class="item clearfix">
<label>Your Email</label>
<input id="email" name="email" value="<?php echo $shipaddr['email'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Phone</label>
<input id="phone" name="tel" value="<?php echo $shipaddr['phone'];?>" class="intxt" style="width:200px;" type="text">
</div>
<div class="item clearfix">
<label>Message to US (Optional)</label>
<textarea id="message" name="message" cols="28" rows="5"></textarea>
</div>
</div>
</div>
<div class="blank20"></div>
<div class="box">
<h6>Shipping Method</h6>
<div class="selectshipping">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<script>


$(document).ready(function(){

	$("input[name='shippname']").click(function(){
		
		var shipname = $("input[name='shippname']:checked").val();
		var shipfee = 20;
		
		<?php foreach ($ships as $item):?>
		if(shipname == '<?php echo $item['shippname'];?>'){
			shipfee = <?php echo $item['shippfee'];?>;
			}
		<?php endforeach;?>

		
		
		$("#shippfee").val(shipfee);		

	});
});


</script>

<?php foreach ($ships as $item):?>
<tr>
<td width="20"><input type="radio" value="<?php echo $item['shippname'];?>" name="shippname" class="radioItem"></td>
<td style="padding-left:5px;"><?php echo $item['shippname'];?>:£<?php echo $item['shippfee'];?>.00</td>
</tr>
<?php endforeach;?>
<input type="hidden" name="shippfee" id ="shippfee" value=""/>

</tbody></table>
</div>
</div>
</div>
<div class="payment2">
<div class="box2">
<h6>Order Total</h6>
<div class="box2_content">
<div class="ordertotal">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>Cart Subtotal</td>
<td align="right"><span>£</span><span id="subtotal">226.00</span></td>
</tr>
</tbody></table>
</div>
<div class="ordertotal2">Total Amount: <span>£</span><span id="ordertotal">226.00</span></div>
</div>
</div>
<div class="blank10"></div>
<div class="payBox">
<h6>Payment Options</h6>
<div class="payBoxContent">
<ul class="payBoxTitle clearfix">
<li class="cur">Credit Card</li>
</ul>
<div class="payBoxInfo">
<div id="payBoxInfo1">
<div class="paymentSelect">
<p>NOTICE:<br><br>
You will redirect to the payment website.<br>
Please do not copy and paste payment card account to avoid payment failure.</p>
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<td style="padding-bottom:10px;" align="right" width="100"><input checked="checked" type="radio"></td>
<td style="padding-bottom:10px; padding-left:10px;"><img src="/css/visa.jpg"></td>
</tr>
</tbody></table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="text-align:right; margin-top:10px;"> <a style="float:left" href="http://www.replicawatchesonly.org.uk/"><img src="/css/continue_en.gif"></a>
<input id="sbt1" src="/css/place_order_en.gif" type="image" value="zhifu">
<input id="payment" name="payment" value="rppaytz" type="hidden">
</div>
</form>
<script type="text/javascript">

		function setfee(val){

			$.post("getprice.html",{"express_id":val},function(data){

				var tmp = data.split("+++");

				//$("#expressdesc").html(tmp[1]);

				$("#subtotal").html(tmp[0]);

				$("#shippsave").html(tmp[2]);

				$("#ordertotal").html(tmp[3]);

			});

		}

	</script>
</div>
</div>